const express = require('express');

const db = require('../db/index');

const router = new express.Router();

const Student = require('../model/students');

router.post('/students_info',async(req,res)=>{
    console.log(req.body);
    // 将其存放到数据库
    await db;
    const result = Student.create(req.body);
    res.send('学生信息提交成功');
})
module.exports = router;
